﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace com.huigo.Framework.BLL
{
    public class CustExtInfoBack
    {
        //备份经销商其他信息
        public static bool AddCustInfoBack(long custFid, string extContactName, string extContactTel, string extContactOthers, string extCompanyName, string extCompanyZip, string extCompanyAddress, string extCompanyTel, string extCompanyFax, string extCompanyEmail, string extCompanyWebsite, string extCompanyReg, string extChargeName, string extFrom, long userId)
        {
            Model.CustExtInfoBack custExtInfoBack = new com.huigo.Framework.Model.CustExtInfoBack();
            custExtInfoBack.ExtCustFid = custFid;
            custExtInfoBack.ExtContactName = extContactName;
            custExtInfoBack.ExtContactTel = extContactTel;
            custExtInfoBack.ExtContactOthers = extContactOthers;
            custExtInfoBack.ExtCompanyName = extCompanyName;
            custExtInfoBack.ExtCompanyZip = extCompanyZip;
            custExtInfoBack.ExtCompanyAddress = extCompanyAddress;
            custExtInfoBack.ExtCompanyTel = extCompanyTel;
            custExtInfoBack.ExtCompanyFax = extCompanyFax;
            custExtInfoBack.ExtCompanyEmail = extCompanyEmail;
            custExtInfoBack.ExtCompanyWebsite = extCompanyWebsite;
            custExtInfoBack.ExtCompanyReg = extCompanyReg;
            custExtInfoBack.ExtChargeName = extChargeName;
            custExtInfoBack.ExtFrom = extFrom;
            custExtInfoBack.BackCreatedBy = userId;
            custExtInfoBack.BackCreatedOn = DateTime.Now;
            return SqlServerDal.CustExtInfoBack.Insert(custExtInfoBack, null);
        }
    }
}
